package cn.ipenta;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.support.SpringBootServletInitializer;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@SpringBootApplication
@Controller
public class SpringBootApp extends SpringBootServletInitializer {



    @GetMapping("/")
    public @ResponseBody String g() {
        return "SDF";

    }

    @GetMapping("/h")
    public String gs() {
        return "home";

    }

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
        return application.sources(SpringBootApp.class);
    }


    public static void main(String[] args) {
        SpringApplication.run(SpringBootApp.class, args);
    }


}